package com.hzsai.service;

import com.hzsai.dao.UserDAO;
import com.hzsai.pojo.User;
import com.hzsai.utils.ResponseMsg;

import javax.jws.soap.SOAPBinding;
import java.sql.SQLException;
import java.util.List;

public interface UserService {

    void say();

    ResponseMsg insertUser(String username, String password);
    ResponseMsg insertUser(User user);

//    public ResponseMsg queryUser(String username, String password);

    UserDAO getUserDAO();

    List<User> selectAllUser() throws SQLException;

    List<User> selectPageUser(long current, long size) throws SQLException;

    User selectUserById(long id) throws SQLException;

    List<User> findUsersByIds(List<Integer> ids);
}
